package cn.mq.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.serializer.JdkSerializationRedisSerializer;

/**
 *
 * @author zhanghui145
 * @date 2022/1/14 11:21
 * @since 1.0.0
 */
@Configuration
public class JdkSerializationConfiguration {

    @Bean
    @ConditionalOnMissingBean(JdkSerializationRedisSerializer.class)
    public JdkSerializationRedisSerializer create(){
        return new JdkSerializationRedisSerializer();
    }
}
